<template>
    <div class="container">
        <p class="oneP">二类电商行业营销传播策略</p>
        <p class="twoP" style="font-weight:100">串联从品牌曝光到销货的全链路运营</p>
        <button class="oneButton" @click="toCreateAIPlan">一键生成方案</button>
        <div class="rowOne">
            <div class="rec1" v-for="(item,index) in arr1" :key="index" @mouseover="show(index)">
                <div class="rec1Son">
                    <div class="left">
                        <img :src="item[0]">
                        <img :src="item[4]">
                    </div>
                    <div class="right">
                        <p>{{item[1]}}</p>
                        <p style="font-weight:100">{{item[2]}}</p>
                    </div>
                </div>
            </div>
        </div>
        <mask-toast v-if="showMaskToast" @closeMask="closeMask"></mask-toast>
    </div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/二类电商/一键生成/14.png")
const img2 = require("../../assets/img/二类电商/一键生成/图层 4019.png")
const img3 = require("../../assets/img/二类电商/一键生成/图层 4023.png")
const img4 = require("../../assets/img/二类电商/一键生成/图层 4022.png")
const img5 = require("../../assets/img/二类电商/一键生成/图层 4024.png")
const img6 = require("../../assets/img/二类电商/一键生成/图层 4020.png")
const img7 = require("../../assets/img/二类电商/一键生成/11.png")
const img8 = require("../../assets/img/二类电商/一键生成/15.png")
const img9 = require("../../assets/img/二类电商/一键生成/16.png")
const img10 = require("../../assets/img/二类电商/一键生成/17.png")
const img11 = require("../../assets/img/二类电商/一键生成/col1.png")
const img12 = require("../../assets/img/二类电商/一键生成/col2.png")
import maskToast from '../upgrade/upgradeToast'
export default {
    data(){
        return {
            arr1:[
                [img1,"策略制定","对电商企业进行营销策略、媒介策略、竞争策略具体化及实施策略进行分析及制定。",img6,img11],
                [img2,"市场分析","对电商企业进行需求、产品、受众等分析，就预算及目标进行全方位规划。",img7,img11],
                [img3,"数据挖掘","为电商企业实行媒介资源匹配组合方案，并分配预算落实媒介执行，及时跟进。",img8,img11],
                [img4,"整合媒介","为电商企业实行媒介资源匹配组合方案，并分配预算落实媒介执行，及时跟进。",img9,img11],
                [img5,"广告素材","从广告创意、文案表达到页面排版用色，有专业团队一站式指导优化。",img10,img11]
            ],
            debug: true,
            showMaskToast: false
        }
    },
    methods:{
        show(index){
            // 初始化arr1
            this.arr1[0][0] = img1
            this.arr1[1][0] = img2
            this.arr1[2][0] = img3
            this.arr1[3][0] = img4
            this.arr1[4][0] = img5
            this.arr1[0][3] = img6
            this.arr1[1][3] = img7
            this.arr1[2][3] = img8
            this.arr1[3][3] = img9
            this.arr1[4][3] = img10
            for(let i = 0;i<this.arr1.length;i++){
                this.arr1[i][4] = img11
            }
            this.arr1[index].splice(0,1,this.arr1[index][3])
            this.arr1[index].splice(4,1,img12)
        },
        toCreateAIPlan(){
            if(this.debug){
                this.showMaskToast = true
                return
            }
            this.$router.push({path:'/createAIPlan'});
        },
        closeMask(data){
            this.showMaskToast = data
        }
    },
    created: function(){
        this.arr1[0][0] = img6;
        this.arr1[0][4] = img12;
    },
    components: {
        maskToast
    }
}
</script>
<style scoped>
.container{
    width: 1200px;
    margin:0 auto;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}
.oneButton{
    width:140px;
    box-shadow: 0px 4px 19px #ed9191;
}
.rowOne{
    overflow: hidden;
    margin-top: 60px;
    height: 589px;
    background: url("../../assets/img/二类电商/一键生成/bg.png");
    position: relative;
}
.rec1{
    cursor: pointer;
}
.rec1:nth-child(1){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:106px;
    left:0;
}
.rec1:nth-child(2){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:0;
    right: 90px;
}
.rec1:nth-child(3){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:185px;
    right: 260px;
}
.rec1:nth-child(4){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:330px;
    left: 47px;
}
.rec1:nth-child(5){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:370px;
    right: 0;
}
.rec1Son{
    width:354px;
    height: 120px;
    margin-left: 30px;
    margin-top: 30px;
}
.left{
    float:left;
    width: 120px;
    height: 120px;
    text-align: center;
    line-height: 120px;
}
.left>img:nth-child(1){
    margin-right: 15px;
}
.rec1:nth-child(5) div.left>img:nth-child(2){
    margin-right:15px;
}
.right{
    float: left;
    width: 234px;
    text-align: left;
}
.right>p:nth-child(1){
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}
.right>p:nth-child(2){
    font-size: 16px;
    margin-top: 18px;
    color:#222222;
}
</style>


